package io.xccit.r;

import lombok.Getter;

/**
 * @author CH_ywx
 * @version 1.0
 * @create 2024/10/13
 * <p>请求状态枚举</p>
 */
@Getter
public enum HttpStatusCode {
    SUCCESS(200, "请求成功"),
    ERROR(403, "请求失败"),
    FORBIDDEN(403, "权限不足"),
    NOT_LOGIN(401, "未登录"),
    NOT_AUTH(401, "未授权"),
    NOT_FOUND(404, "资源不存在"),
    INTERNAL_SERVER_ERROR(500, "服务器异常");

    private final Integer code;
    private final String message;
    HttpStatusCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
